<!DOCTYPE html>
<html>
  <head>
    <script type="text/javascript" src="../../d3.v2.js"></script>
    <style type="text/css">

body {
  font: 10px sans-serif;
}

line, path {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

.minor :not(.minor) {
  display: none;
}

    </style>
  </head>
  <body>
    <script type="text/javascript">

var margin = {top: 10, right: 10, bottom: 20, left: 10},
    width = 960 - margin.right - margin.left,
    height = 80 - margin.top - margin.bottom;

var x = d3.scale.linear()
    .domain([.05, .95])
    .range([0, width]);

var y = d3.scale.linear()
    .range([0, height]);

var svg = d3.select("body").append("svg")
    .attr("width", width + margin.right + margin.left)
    .attr("height", height + margin.top + margin.bottom)
  .append("g")
    .attr("transform", "translate(" + margin.left + "," + margin.top + ")");

svg.append("g")
    .attr("class", "x minor")
    .attr("transform", "translate(0," + height + ")")
    .call(d3.svg.axis().scale(x).tickSubdivide(2).tickSize(-6));

svg.append("g")
    .attr("class", "x axis")
    .attr("transform", "translate(0," + height + ")")
    .call(d3.svg.axis().scale(x));

    </script>
  </body>
</html>
